package com.itheima.core.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.itheima.core.dao.truckDao;
import com.itheima.core.po.truckMessage;
import com.itheima.core.service.truckService;

@Service("truckService")
@Transactional
public class truckServiceImpl implements truckService{
	@Autowired
	private truckDao truckdao;
	@Override
	public List<truckMessage> findAllTruckList(String adminID) {
		// TODO Auto-generated method stub
		return  truckdao.findAllTruckList(adminID);
	}
	@Override
	public void addtruck(String truckID, String routeID, String adminID, Double truckWeight, Double truckLength) {
		// TODO Auto-generated method stub
		truckdao.addtruck(truckID, routeID, adminID, truckWeight, truckLength);
	}

}
